package com.test.hashmap.base.treemap;

import java.util.TreeMap;

public class ServiceA extends Thread {
    private TreeMap treeMap;

    public ServiceA(TreeMap treeMap) {
        this.treeMap = treeMap;
    }

    @Override
    public void run() {
        System.out.println("serviceA要取treeMap中的数据了");
        System.out.println("ServiceA  " + treeMap.pollLastEntry());
    }
}
